Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / StructComparison<T> Delegate
The type of the structs to compare.
The first struct to compare.
The second struct to compare.

In This Topic
    StructComparison<T> Delegate
    In This Topic
    Represents the method that compares two structs of the same type.
    Syntax
    'Declaration
     
    Public Delegate Function StructComparison(Of T As {New, Struct})( _
       ByRef x As T, _
       ByRef y As T _
    ) As System.Integer
    public delegate System.int StructComparison<T>( 
       ref T x,
       ref T y
    )
    where T: new(), struct

    Parameters

    x
    The first struct to compare.
    y
    The second struct to compare.

    Type Parameters

    T
    The type of the structs to compare.

    Return Value

    A signed integer that indicates the relative values of x and y. Value Meaning Less than 0 x is less than y. 0 x equals y. Greater than 0 x is greater than y.
    See Also